/*
 * @Description: 图形输出
 * @Author: liuzl
 * @Date: 2024-09-03 17:05:44
 * @LastEditors: liuzl
 * @LastEditTime: 2024-09-03 17:05:49
 */
public class Test11_PrintDiamond {
    public static void main(String[] args) {
for(int i=1;i<=4;i++){
    for(int k=4-i;k>=0;k--){
        System.out.print(" ");           
    }
    for(int j=1;j<=i;j++){
        System.out.print("*");
    }
    for(int l=2;l<=i;l++){
        System.out.print("*");
    }
    System.out.println(" ");
    }

    for(int i=1;i<=3;i++){               
        for(int j=0;j<=i;j++){
            System.out.print(" ");
        }
        for(int k=3-i;k>=0;k--){
            System.out.print("*");           
        }
        for(int l=2-i;l>=0;l--){
            System.out.print("*");
        }
         System.out.println(" ");
        }      
}
}